package is.billsharing.app;

import android.os.Bundle;
import android.app.TabActivity;
import android.widget.TabHost;
import android.content.Intent;
import android.content.SharedPreferences;
public class TabsampleActivity extends TabActivity {

	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.home);
        
        TabHost tabHost = getTabHost();       
        
        tabHost.addTab(tabHost.newTabSpec("tab1").setIndicator("Home").setContent(new Intent(this, HomeActivity.class)));
        tabHost.addTab(tabHost.newTabSpec("tab2").setIndicator("User").setContent(new Intent(this, UserActivity.class)));
        tabHost.addTab(tabHost.newTabSpec("tab3").setIndicator("Bill").setContent(new Intent(this, BillActivity.class)));
        tabHost.addTab(tabHost.newTabSpec("tab4").setIndicator("Sign Out").setContent(new Intent(this, signoutActivity.class)));
        
        tabHost.setCurrentTab(0); 
 
    }

}